import numpy as np

def test1():
    a = np.array([1,2,3,4])
    a += 2
    print(a)

def test2():
    # matmul 矩阵乘法
    a = np.ones((2,3))
    b = np.full((3,2), 2)
    c = np.matmul(a, b)
    print(a, "\n", b, "\n", c)

def test3():
    # statistics
    stats = np.array([[1,2,3],[4,5,6]])
    x = stats.reshape((1,6))
    print(x)


if __name__=="__main__":
    test3()
